//
//  RadioButtonsCell.m
//  yilutongxing
//
//  Created by T&J on 2017/6/6.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "RadioButtonsCell.h"
#import "RadioButton.h"

@implementation RadioButtonsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)choose:(id)sender {
    UIButton *btn = sender;
    if (!btn.selected) {
        for (UIButton *radio in _radios) {
            radio.selected = NO;
        }
    }
    btn.selected = !btn.selected;
}

@end
